package com.gym.openapi.dao;

import com.gym.openapi.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 *@author:ming
 *@Date: 2021/11/26
 *@description:菜单列表
 */
public interface MenuMapper {

    /**
     * @author:ming
     * @Date: 2021/11/24
     * @description:根据id给查菜单，四表联查
     */
    List<Menu> getMenuByUid(@Param("id") Integer id);

/**
 *@author:ming
 *@Date: 2021/11/24
 *@description:显示授权菜单树
 */
    List<Menu> getAllMenu();

    List<Menu> getList();


    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);
}